package leetcode.code130;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution130 implements IDebug {

	public abstract void solve(char[][] board);

	@Override
	public void debug1() {
		String board = "[[\"X\",\"X\",\"X\",\"X\"],[\"X\",\"O\",\"O\",\"X\"],[\"X\",\"X\",\"O\",\"X\"],[\"X\",\"O\",\"X\",\"X\"]]";
		char[][] input = HelpDebug.str2array5(board);
		String expect = "[[\"X\",\"X\",\"X\",\"X\"],[\"X\",\"X\",\"X\",\"X\"],[\"X\",\"X\",\"X\",\"X\"],[\"X\",\"O\",\"X\",\"X\"]]";
		char[][] e = HelpDebug.str2array5(expect);
		this.solve(input);
		HelpDebug.compare(e, input);
	}

	@Override
	public void debug2() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
